﻿#ifndef _AUDIO_PROCESSING_BASE_H_
#define _AUDIO_PROCESSING_BASE_H_

#include <string>

typedef     signed char         int8_t;
typedef     signed short        int16_t;
typedef     signed int          int32_t;
typedef     signed __int64      int64_t;
typedef     unsigned char       uint8_t;
typedef     unsigned short      uint16_t;
typedef     unsigned int        uint32_t;
typedef     unsigned __int64    uint64_t;

namespace audio_tools
{
float GetVolumeByDsound(int volume);
//获取音量大小,平方平均
int GetStreamVolume(const int16_t *play_frm, int length);
//获取音量大小,算术平均
int GetPcmVolume(const int16_t *play_frm, int length);
//获取音量大小,分贝
int GetPcmDb(const int16_t *play_frm, int length);
}  // namespace audio_tools

#endif	//_AUDIO_PROCESSING_BASE_H_
